package cn.psvmc.cxzapi.model.system;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜单表
 * @Author auto
 * @Date 2024-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_menu")
public class TMenu implements Serializable {

    //菜单id
    @TableId(value = "menuid", type = IdType.AUTO)
    private Integer menuid;

    //菜单名称
    @TableField("menuname")
    private String menuname;

    //菜单类型（1平台 2商家 3平台商家）
    @TableField("menutype")
    private Integer menutype;

    //地址
    @TableField("url")
    private String url;

    //图标
    @TableField("icon")
    private String icon;

    //所属菜单id
    @TableField("menupid")
    private Integer menupid;

    //是否是叶子节点（0不是1是）
    @TableField("leaf")
    private Integer leaf;

    //模块操作
    @TableField("operates")
    private String operates;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;


}
